#!/usr/bin/env python
# -*- coding:utf-8 -*-

from collections import Iterable
from collections import Iterator
print isinstance([],Iterable)   #True
print isinstance([],Iterator)   #False
print isinstance(iter([]),Iterator) #True

